"""
循环
"""
print("----------------while循环--------------")
i = 0
while i < 2:
    print("条件成立")
    i = i + 1

print("----------------for循环--------------")
# for 循环遍历，for循环中的break 和 continue和java中用法相同
name = "abcde"
for v in name:
    print(v)

print("----------------range--------------")
# range 用来生成一个数字序列 输出 0~9
print(range(10))
for i in range(10):
    print(i)

# 0 3 6 9
for i in range(0, 10, 3):
    print(i)


